<?php
  require_once("class.request_fetcher.php");
  require_once("class.markup_config.php");
  require_once("class.markup_configs_helper.php");
  print_r(AggrMarkupService("CN4B06749D9D833"));
  
function AggrMarkupService($config_id)
  {
      $arr=markup_configs_helper::get_markup_by_config($config_id);
      $arr2=array();
      foreach($arr as $ele)
      {
       $arr2[]=array("MARKUP_INFO"=>array("MARKUP_RULE_ID"=>array_merge(markup_configs_helper::get_markup_rule_by_rule_id($ele["rule_id"]),$ele)));   
      }
      return $arr2;
  }
?>
